package types

type ServerResponse struct {
	Code    int     `json:"code"`
	Payload Payload `json:"payload"`
}

type Payload struct {
	Results []ServerData `json:"results"`
}

type ServerData struct {
	TotalOffer               int                  `json:"total_offer"`
	ConvertedUnitPrice       float64              `json:"converted_unit_price"`
	DisplayCurrency          string               `json:"display_currency"`
	DisplayPrice             string               `json:"display_price"`
	IsUnique                 bool                 `json:"is_unique"`
	IsGroupDisplay           bool                 `json:"is_group_display"`
	Score                    float64              `json:"score"`
	OfferGroup               string               `json:"offer_group"`
	OfferID                  string               `json:"offer_id"`
	RelationID               string               `json:"relation_id"`
	ServiceID                string               `json:"service_id"`
	BrandID                  string               `json:"brand_id"`
	RegionID                 string               `json:"region_id"`
	Title                    string               `json:"title"`
	Description              string               `json:"description"`
	OfferTitleCollectionTree []interface{}        `json:"offer_title_collection_tree"`
	PrimaryImgAttributes     []interface{}        `json:"primary_img_attributes"`
	OfferAttributes          []OfferAttributes    `json:"offer_attributes"`
	FilterAttributes         FilterAttributes     `json:"filter_attributes"`
	OfferGroupAttributes     OfferGroupAttributes `json:"offer_group_attributes"`
	DeliveryMode             []string             `json:"delivery_mode"`
	DeliveryMethodIds        []interface{}        `json:"delivery_method_ids"`
	AvailableQty             int                  `json:"available_qty"`
	ReservedQty              int                  `json:"reserved_qty"`
	MinQty                   int                  `json:"min_qty"`
	OfferCurrency            string               `json:"offer_currency"`
	UnitPrice                float64              `json:"unit_price"`
	UnitName                 string               `json:"unit_name"`
	OtherPricing             []interface{}        `json:"other_pricing"`
	QtyMetric                string               `json:"qty_metric"`
	WholesaleDetails         []interface{}        `json:"wholesale_details"`
	OtherWholesaleDetails    []interface{}        `json:"other_wholesale_details"`
	DeliverySpeed            string               `json:"delivery_speed"`
	DeliverySpeedDetails     []interface{}        `json:"delivery_speed_details"`
	SupportedCountries       []interface{}        `json:"supported_countries"`
	//SatisfactionRate         int64                `json:"satisfaction_rate"`
	TotalRating        int       `json:"total_rating"`
	DisplayTo          DisplayTo `json:"display_to"`
	Status             string    `json:"status"`
	SellerID           string    `json:"seller_id"`
	Username           string    `json:"username"`
	UserAvatar         string    `json:"user_avatar"`
	SellerRanking      string    `json:"seller_ranking"`
	UserLevel          int       `json:"user_level"`
	OnlineHr           int       `json:"online_hr"`
	OfflineHr          int       `json:"offline_hr"`
	CreatedAt          int64     `json:"created_at"`
	UpdatedAt          int64     `json:"updated_at"`
	ExpiredAt          int64     `json:"expired_at"`
	SellerUpdatedAt    int       `json:"seller_updated_at"`
	IsOfficial         bool      `json:"is_official"`
	CatID              string    `json:"cat_id"`
	AncestorID         string    `json:"ancestor_id"`
	Avatar             string    `json:"avatar"`
	FormattedUnitPrice string    `json:"formatted_unit_price"`
	DecimalPlaces      int       `json:"decimal_places"`
}
type OfferAttributes struct {
	CollectionID string `json:"collection_id"`
	DatasetID    string `json:"dataset_id"`
	Value        string `json:"value"`
}
type FilterAttributes struct {
	Lgc23027Dropdown18 []string `json:"lgc_23027_dropdown_18"`
}
type OfferGroupAttributes struct {
	Lgc23027Dropdown18 []string `json:"lgc_23027_dropdown_18"`
}
type DisplayTo struct {
}
